#pragma once
#include "afxwin.h"
#include "afxcmn.h"

class CtestDlg : public CDialog
{
public:

	CtestDlg(CWnd* pParent = NULL);

	enum {IDD = IDD_TEST_DIALOG};

	virtual BOOL DestroyWindow();

protected:

	HICON m_hIcon;

	CButton Btn_OK;
	CButton Btn_Cancel;
	CButton Btn_Submit;

	CEdit Edit_Msg;

	myGridList m_ListCtrl;

	bool m_IsTimer;

	CString m_szMsg;

	char m_Log[1024];

	virtual BOOL OnInitDialog();

	virtual BOOL PreTranslateMessage(MSG *pMsg);

	virtual int LoadCurrentPath();

	virtual void Msg(char *Text);

	virtual void DoDataExchange(CDataExchange* pDX);

	afx_msg LRESULT OnMessage(WPARAM wParam, LPARAM lParam);
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnPaint();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnMove(int x, int y);
	afx_msg void OnBnClickedOk();
	afx_msg void OnBnClickedCancel();
	afx_msg void OnBnClickedButtonTestSubmit();

	DECLARE_MESSAGE_MAP()
public:
	CStatic Static_Result;
	CButton Btn_PreivewTop;
	CButton Btn_Preivew;
	CButton Btn_Next;
	CButton Btn_NextBottom;
	afx_msg void OnBnClickedButtonPreivew();
	afx_msg void OnBnClickedButtonNext();
	afx_msg void OnBnClickedButtonPreviewtop();
	afx_msg void OnBnClickedButtonNextbottom();
	CEdit Edit_Page;
	CStatic Static_Percent;
};
